{template 'common/header'}
{template 'common'}
<div class="main">
	<ul class="nav nav-tabs">
		<li{if $_GPC['do'] == 'manage'} class="active"{/if}><a href="{php echo $this->createWebUrl('manage');}">活动管理</a></li>
		<li{if $_GPC['do'] == 'post'} class="active"{/if}><a href="{php echo url('platform/reply/post',array('m'=>'ewei_takephotoa'));}">添加活动规则</a></li>
		<li{if $_GPC['do'] == 'fanslist'} class="active"{/if}><a href="{php echo $this->createWebUrl('fanslist',array('name'=>'ewei_takephotoa', 'rid' => $rid));}">参与用户</a></li>
	</ul>
	
	   <div class="panel panel-info">
	<div class="panel-heading">筛选</div>
	<div class="panel-body">
		<form action="./index.php" method="get" class="form-horizontal" role="form">
			<input type="hidden" name="c" value="site" />
			<input type="hidden" name="a" value="entry" />
        	<input type="hidden" name="m" value="ewei_takephotoa" />
        	<input type="hidden" name="do" value="fanslist" />
        	<input type="hidden" name="rid" value="{$_GPC['rid']}" />
			<div class="form-group">
				<label class="col-xs-12 col-sm-2 col-md-2 col-lg-1 control-label">关键字</label>
				<div class="col-sm-8 col-lg-9">
					<input class="form-control" name="keywords" id="" type="text" value="{$_GPC['keywords']}" placeholder="可查询昵称"> 
                                        
				</div>
                                 <div class=" col-xs-12 col-sm-2 col-lg-2">
					<button class="btn btn-default"><i class="fa fa-search"></i> 搜索</button>
                                        <button class="btn btn-primary" onclick="location.href='{php echo $this->createWebUrl('download',array('rid'=>$_GPC['rid']))}'" type="button"><i class="fa fa-search"></i> 导出数据</button>
				</div>
                          
			</div>
 			<div class="form-group">
			</div>
		</form>
	</div>
 
	<div style="padding: 0 15px 0  15px;" style="position:relative">
		<table class="table table-hover" style="position:relative">
			<thead class="navbar-inner">
				<tr><th style='width:80px;'>排名</th>
				<th>微信码</th>
                                                <th style="width:50px;">头像</th>
                                                <th>昵称</th>
                                                <th>成绩</th>
                                                <th>成绩截图</th>
                                                <th>参与时间</th>
		</tr>
			</thead>
			<tbody>
				{loop $list $key $row}
				<tr>
				<td>{php echo ($pindex-1)*$psize + $key + 1}</td>
				 <td>{$row['openid']}</td>
                                 <td><img src="{$row['headimgurl']}" style='width:30px;height:30px;' /></td>
                           
				<td>{$row['nickname']}</td>
                                <td>{$row['score']}</td>  
                                <td><a href='{php echo tomedia($row['img'])}' target='_blank'><img src="{php echo tomedia($row['img'])}" style='width:30px;height:30px;' /></a></td>
                                <td>{php echo date('Y-m-d H:i', $row['createtime'])}</td>
				</tr>
				{/loop}
				
			</tbody>
		</table>
		{$pager}
	</div>
	
</div>
 
{template 'common/footer'}